<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/page/common/public.jspf"%>
<%@ page import="com.hengpeng.itfints.tools.PageUtil" %>
<% 
	PageUtil pageUtil = (PageUtil)request.getAttribute("PageUtil");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目信息</title>
<link rel="stylesheet" type="text/css" href="${path}/css/base.css"/>
<link rel="stylesheet" type="text/css" href="${path}/css/layout.css"/>
<script src="${path }/js/common/jquery1.10.2.min.js"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script type="text/javascript">
//分页
function go (page, total) {
	if (page > total) {
		page = total;
	}
	$("#curPage").val(page);
	$("#myform").submit();
}
$(document).ready(function(){
	$("#bussinessType").val($("#h_bussinessType").val());
	$("#location").val($("#h_location").val());
	$("#financeType").val($("#h_financeType").val());
	$("#gm").val($("#h_gm").val());
});
</script>
</head>
<body bgcolor="#f9f9f9">
<form id="myform" action="<%=request.getContextPath()%>/project/list.htm">
<input type="hidden" id="h_curPage" name="curPage" />
	<input type="hidden" id="h_bussinessType" name="h_bussinessType" value="${bussinessType }"/>
	<input type="hidden" id="h_location" name="h_location" value="${location }"/>
	<input type="hidden" id="h_financeType" name="h_financeType" value="${financeType }"/>
	<input type="hidden" id="h_gm" name="h_gm" value="${gm }"/>
	<div class="wrapper">
        <!-- head -->
		<c:import url="../include/top.jsp"></c:import>
    	<!--主体-->
        <div class="pageCenter registeredBox">
            <div class="companyBox">
            	<div class="companyState">
                        <table cellpadding="0" cellspacing="0" width="100%">
                        	<tr>
                        		<td>所属行业： 
                                        <select name="bussinessType" id="bussinessType">
                                        	<option value="">全部</option>
                                            <option value="type1">计算机/互联网/通信/电子</option>
                                            <option value="type2">会计/金融/银行/保险</option>
                                            <option value="type3">贸易/消费/制造/保险</option>
                                            <option value="type4">制药/医疗</option>
                                            <option value="type5">广告/媒体</option>
                                            <option value="type6">房地产/建筑</option>
                                            <option value="type7">专业服务/教育/培训</option>
                                            <option value="type8">服务业</option>
                                            <option value="type9">物流/运输</option>
                                            <option value="type10">能源/原材料</option>
                                            <option value="type11">政府/非盈利性机构/其他</option>
                                        </select>
                                </td>
                            	<td>所在地区：
                                       <select  name="location" id="location">
                                       		<option value="">全部</option>
	                                        <option value="BEIJING">北京市</option>
	                                    	<option value="TIANJIN">天津市</option>
	                                    	<option value="CHONGQING">重庆市</option>
	                                    	<option value="SHANGHAI">上海市</option>
	                                    	<option value="HEBEI">河北省</option>
	                                    	<option value="SHANXI">山西省</option>
	                                    	<option value="JILIN">吉林省</option>
	                                    	<option value="LIAONIN">辽宁省</option>
	                                    	<option value="HEILONGJIANG">黑龙江省</option>
	                                    	<option value="SHANGXI">陕西省</option>
	                                    	<option value="GANSHU">甘肃省</option>
	                                    	<option value="QINGHAI">青海省</option>
	                                    	<option value="SHANDONG">山东省</option>
	                                    	<option value="FUJIAN">福建省</option>
	                                    	<option value="ZHEJIANG">浙江省</option>
	                                    	<option value="TAIWAN">台湾省</option>
	                                    	<option value="HENAN">河南省</option>
	                                    	<option value="HUBEI">湖北省</option>
	                                    	<option value="HUNAN">湖南省</option>
	                                    	<option value="JIANGXI">江西省</option>
	                                    	<option value="JIANGSHU">江苏省</option>
	                                    	<option value="ANHUI">安徽省</option>
	                                    	<option value="GUANGDONG">广东省</option>
	                                    	<option value="HAINAN">海南省</option>
	                                    	<option value="SICHUAN">四川省</option>
	                                    	<option value="GUIZHOU">贵州省</option>
	                                    	<option value="YUNNAN">云南省</option>
	                                    	<option value="NEIMENGGU">内蒙古自治区</option>
	                                    	<option value="XINJIANG">新疆维吾尔自治区</option>
	                                    	<option value="NINXIA">宁夏回族自治区</option>
	                                    	<option value="GUANGXI">广西壮族自治区</option>
	                                    	<option value="XIZANG">西藏自治区</option>
	                                    	<option value="XIANGGANG">香港特别行政区</option>
	                                    	<option value="AOMEN">澳门特别行政区</option>
	                                    </select>
                                </td>
                                <td>融资方式：
                                        <select name="financeType" id="financeType">
                                        	<option value="">全部</option>
                                        	<option value="stockstype">股权融资</option>
                                        	<option value="credittype">债权融资</option>
                                        </select>
                                </td>
                                <td>融资规模：
                                        <select name="gm" id="gm">
                                        	<option value="">全部</option>
                                            <option value="less200">200万以下</option>
                                            <option value="200to500">200-500万</option>
                                            <option value="500to800">500-800万</option>
                                            <option value="morethan800">800万以上</option>
                                        </select>
                                </td>
                                <td>
                                	<input type="button" class="greenBtn" value="筛选"  onclick="search();"/>
                                </td>
                            </tr>
                        </table>
                </div>
                <table cellpadding="0" cellspacing="0" class="marginT_20 clubTable" width="100%">
                    <c:forEach items="${dataList}" var="auto">
                    		<tr class="borderBottom_d">
								<td>
		                        	<p class="fSize_16 f_orange"><b><a href="<%=request.getContextPath()%>/project/detail.htm?id=${auto.id}">${auto.projectname}</a></b></p>
		                            
		                            <p class="marginT_20">项目类型：${auto.projectType.text}</p>
		                        </td>
		                        <td>
		                        	<p><font class="fSize_10">${auto.financeMoney}</font></p>
		                            <p class="marginT_13">融资金额</p>
		                        </td>
		                        <td>
		                        	<p>${auto.location.text}</p>
		                            <p class="marginT_10">所在地区</p>
		                        </td>
		                        <td>
		                        	<p>${auto.bussinessType.text}</p>
		                            <p class="marginT_15">所属行业</p>
		                        </td> 
		                        <td>
		                        	<p><font class="fSize_13 f_orange">${auto.userfor}</font></p>
		                            <p class="marginT_10">融资用途</p>
		                        </td>
		                        <td>
		                        	<p><font class="fSize_13">${auto.linkMan}</font></p>
		                            <p class="marginT_10">联系人</p>
		                        </td>
		                        <td>
										<input type="button" class="orangeBtn" onclick="toorder('${auto.id}')"  value="约谈项目方" />
										
		                        </td>
		                    </tr>
                    </c:forEach>
                </table>
                <p class="tAlign_c pageBox">
               			 记录总数<%=pageUtil.getTotalCount()%>条 当前页/总页数<%=pageUtil.getCurrentPage()%> 
						/<%=pageUtil.getPageCount()%>每页显示<%=pageUtil.getPageSize()%>条 
						<a onclick="javascript:go(1,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_frist" class="page-start"><span>首页</span></a> 
						<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() - 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_pre" class="page-prev"><span>上一页</span></a> 
						<a onclick="javascript:go(<%=(pageUtil.getCurrentPage() + 1)%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_next" class="page-next"><span>下一页</span></a> 
						<a onclick="javascript:go(<%=pageUtil.getPageCount()%>,<%=pageUtil.getPageCount()%>);" href="javascript:void(0);" name="pagebar_last" class="page-end"><span>末页</span></a> 
                </p> 
            </div>             
        </div>
    	<!--主体-->
    	<!--foot-->
        <c:import url="../include/foot.jsp"></c:import>
        <!--foot--> 
	</div>  
</form>
<script type="text/javascript">
      function toorder (id) {
           window.location.href = "<%=request.getContextPath()%>/project/toOrder.htm?projectId="+id;
      }
</script>
<script type="text/javascript">

function detail (id) {
	window.location.href = "<%=request.getContextPath()%>/project/detail.htm?id="+id+"";
}
function search () {
	$("#myform").submit();
}
</script>  
</body>
</html>